{template '_header'}

<div class="page-header">当前位置：<span class="text-primary">会员设置</span></div>

  <div class="page-content">
      <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data" >



          <div class="form-group">
              <label class="col-lg control-label">会员等级说明链接</label>
              <div class="col-sm-9 col-xs-12">
                  {ifp 'sysset.member.edit'}
                  <div class="input-group">
                      <input type="text" name="data[levelurl]" class="form-control" value="{$data['levelurl']}" id="levelurl" />
                      <div class="input-group-btn">
                          <div class="btn btn-default" data-toggle="selectUrl" data-input="#levelurl">选择链接</div>
                      </div>
                  </div>
                  {else}
                  <input type="hidden" name="data[levelurl]" value="{$data['levelurl']}" />
                  <div class='form-control-static'>{$data['levelurl']}</div>
                  {/if}
              </div>
          </div>
          <div class="form-group">
              <label class="col-lg control-label">会员等级升级依据</label>
              <div class="col-sm-9 col-xs-12">
                  {ifp 'sysset.member.edit'}
                  <label class="radio radio-inline">
                      <input type="radio" name="data[leveltype]" value="0" {if empty($data['leveltype'])}checked{/if}/> 已完成的订单金额
                  </label>
                  <label class="radio radio-inline">
                      <input type="radio" name="data[leveltype]" value="1" {if $data['leveltype']==1}checked{/if}/> 已完成的订单数量
                  </label>
                  <span class="help-block">默认为完成订单金额</span>
                  {else}
                  <input type="hidden" name="data[leveltype]" value="{$data['leveltype']}" />
                  <div class='form-control-static'>
                      {if empty($data['leveltype'])}
                      已完成的订单金额
                      {else if $data['leveltype']==1}
                      已完成的订单数量
                      {/if}
                  </div>
                  {/if}
              </div>
          </div>

          <div class="form-group">
              <label class="col-lg control-label"></label>
              <div class="col-sm-9 col-xs-12">
                  {ifp 'sysset.member.edit'}
                  <input type="submit" value="提交" class="btn btn-primary"  />

                  {/if}
              </div>
          </div>

      </form>
  </div>

{template '_footer'}     
